package com.zuche.seraph.common;

import java.io.Serializable;

/**
 * Entity基类
 */
public class BaseEntity implements Serializable {

    private Integer page;

    private Integer offset;

    private Integer limit;

    public Integer getOffset() {
        if(page==null){
            return null;
        } else {
            return (page-1)*10;
        }
    }
    public void setOffset(Integer offset) {
        this.offset = offset;
    }
    public Integer getPage() {
        return page;
    }
    public void setPage(Integer page) {
        this.page = page;
    }
    public Integer getLimit() {
        return limit;
    }
    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
